/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nominalitzacions.domain;

import java.io.IOException;
import nominalitzacions.persistance.PasswordDataManagerController;

/**
 *
 * @author daniel.camacho.rodriguez
 */
public class PasswordDomainController {

    private PasswordDataManagerController PDMC;
    private String pass;

    public PasswordDomainController() throws IOException {
        PDMC = new PasswordDataManagerController();
        pass = PDMC.getPass();
    }

    public String getPass(){
        return pass;
    }

    public void changePassTo(String s) throws IOException{
        PDMC.setPass(s);
        pass = s;
    }

    public void setPass(String s){
        pass = s;
    }
}
